<template>
  <h1>计数器3:{{count}}</h1>
  <button @click="increment">增加</button>
</template>
<script>
import {mapState} from 'vuex'
export default {
  methods:{
    increment(){
      this.$store.commit('increment')
    }
  },
  computed : mapState(['count'])
}
</script>